#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int N;
    cout<<"Vvedite N: ";
    cin>>N;
    double A[N];
    A[0]=1;
    A[1]=2;
    for(int i=2;i<N;i++)
    {
        A[i]=(A[i-2]+(2*A[i-1]))/3;
        cout<<A[i]<<" ";
    }

    return a.exec();
}
